﻿#region << 版 本 注 释 >>
/*----------------------------------------------------------------
 * 修改人：
 * 时间：
 * 修改说明：为所有属性添加JsonPropertyName特性，统一使用小驼峰命名
 *----------------------------------------------------------------*/
#endregion << 版 本 注 释 >>

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace seejee_Backendium.Core.Models
{
    public class DashboardContainerDto : DashboardItemDto
    {
        [JsonPropertyName("id")]
        public string Id { get; set; }

        [JsonPropertyName("type")]
        public string Type { get; set; }

        [JsonPropertyName("name")]
        public string Name { get; set; }

        [JsonPropertyName("span")]
        public int Span { get; set; }

        [JsonPropertyName("height")]
        public int Height { get; set; }

        [JsonPropertyName("title")]
        public string Title { get; set; }

        [JsonPropertyName("backgroundColor")]
        public string BackgroundColor { get; set; }

        [JsonPropertyName("headerColor")]
        public string HeaderColor { get; set; }

        [JsonPropertyName("titleColor")]
        public string TitleColor { get; set; }

        [JsonPropertyName("titleSize")]
        public int TitleSize { get; set; }

        [JsonPropertyName("dividerColor")]
        public string DividerColor { get; set; }

        [JsonPropertyName("dividerGradient")]
        public string DividerGradient { get; set; }

        [JsonPropertyName("dividerHeight")]
        public string DividerHeight { get; set; }

        [JsonPropertyName("sort")]
        public int Sort { get; set; }

        [JsonPropertyName("children")]
        public List<DashboardItemDto> children { get; set; } = new List<DashboardItemDto>();
    }
}